require(['./config'],()=> {
    require(['jquery','header','footer','bootstrap'],() => {
        class Enroll{
            constructor(){
                // this.email = $('.email')
                // this.password  = $('.password')
                this.creatEnrollDate()
            }
            creatEnrollDate(){
                $('.submitbtn').on('click' , ()=>{
                    // let emailValue = this.email.prop('value')
                    // let passwordValue = this.password.prop('value')
                    // const userList = localStorage.getItem('userList')
                    // let arr
                    // if(userList){
                    //     arr = JSON.parse(userList)
                    //     arr.push({emailValue,passwordValue})
                    // }else{
                    //     arr = [{emailValue,passwordValue}]
                    // }
                    // localStorage.setItem('userList',JSON.stringify(arr))
                    alert("注册成功")
                    location.href = '/html/login.html'
                })
            }

        }
        
        return new Enroll()
    })
})